# -*- coding: utf-8 -*-
# @ Time   :  2020/8/11 14:54
# @ Author : Redtree
# @ File :  ts 
# @ Desc : 网易云音乐的MP3要用这个工具转码才能播放


# def ffmpeg():
#     #减速mp3音频，音乐pygame有自带加速播放mp3
#     cmd = "D:/ffmpeg-20200818-1c7e55d-win64-static/bin/ffmpeg"
#     import os
#     m4a_path = 'battle2.mp3'
#     os.system(cmd+' -i '+m4a_path+' -filter:a "atempo=1.0" -vn '+'out5.mp3')
# ffmpeg()


# import pygame,sys
# pygame.init()
# pygame.mixer.init()
# screen=pygame.display.set_mode([640,480])
# pygame.time.delay(1000)#等待1秒让mixer完成初始化
# soundwav=pygame.mixer.Sound("kaipao.wav")
# soundwav.play()
# # 设置帧数
# FPS = 60
# Clock = pygame.time.Clock()
# Clock.tick(FPS)
# while 1:
#     for event in pygame.event.get():
#         if event.type==pygame.QUIT:
#             sys.exit()


